import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router/index'
import http from './utils/http'
import ElementPlus from 'element-plus';
// 注册Element Plus中的ElMessage为全局方法
import { ElMessage } from 'element-plus';
import 'element-plus/dist/index.css';

const app = createApp(App);
const pinia = createPinia()
app.config.globalProperties.$http = http
app.config.globalProperties.$message = ElMessage;
app.use(router)
app.use(ElementPlus)
app.use(pinia)
app.mount('#app')

